import Vue from 'vue'
import App from './App'

//关闭小程序控制台提示
Vue.config.productionTip = false

//设置域名https://electric.wf.qwangluo.net  http://app.rsjqlgold.com  http://jinqili.p2.sdqttx.net:92 www.rsjqlgold.com
Vue.prototype.httpPath = 'http://www.wbhapi.2022fly.com/';
Vue.prototype.wwwPath ='http://www.rsjqlgold.com';


//打包格式为app类型
App.mpType = 'app'

// vuex
import store from './store'
Vue.prototype.$store = store

// 引入路由
import {router,RouterMount} from './common/router.js';
Vue.use(router);

// 引入全局uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// 如此配置即可
// uni.$u.config.unit = 'rpx'

//引入全局mixin
import mixin from './common/mixin'
Vue.mixin(mixin)


// 创建vue实例对象
const app = new Vue({
    store,
    ...App
})

//扩展方法工具
import tools from '@/common/function.js';
Vue.use(tools, app)

// 引入请求封装
require('@/common/http.js')(app)

//小程序固定写法-挂载方法
app.$mount()
